package com.hunan.yllxy.repostitory.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hunan.yllxy.util.Preconditions;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 刘华
 * @since 2025-06-20
 */
@Getter
@Setter
@TableName("user_daka_info")
@ApiModel(value = "UserDakaInfo对象", description = "")
public class UserDakaInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @TableField("daka_score_id")
    private String dakaScoreId;

    @TableField("daka_content_id")
    private String dakaContentId;

    @TableField("daka_option_id")
    private String dakaOptionId;

    @TableField("user_daka_file")
    private String userDakaFile;

    @TableField("user_daka_file_name")
    private String userDakaFileName;

    @TableField("user_id")
    private String userId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    private String activityId;

    @TableField("social_people_num")
    private Integer socialPeopleNum;

    @Excel(name = "用户名", height = 20, width = 30, isImportField = "true_st")
    @TableField(exist = false)
    private String userName;

    @Excel(name = "打卡顺序", height = 20, width = 30, isImportField = "true_st")
    @TableField(exist = false)
    private Integer contentIndex;


    @Excel(name = "打卡标题", height = 20, width = 30, isImportField = "true_st")
    @TableField(exist = false)
    private String titleName;

    @Excel(name = "是否语音打卡", height = 20, width = 30, isImportField = "true_st",replace = {"是_true","否_false"})
    @TableField(exist = false)
    private Boolean isFreedom;

    @Excel(name = "打卡内容选择项", height = 20, width = 30, isImportField = "true_st",replace = {"是_true","否_false"})
    @TableField(exist = false)
    private String desContent;

    @Excel(name = "打卡评分", height = 20, width = 30, isImportField = "true_st",replace = {"是_true","否_false"})
    @TableField(exist = false)
    private Integer dakaScore;


    @TableField(exist = false)
    private DakaScoreInfo dakaScoreInfo;

    @TableField(exist = false)
    private DakaOptionInfo dakaOptionInfo;

    @TableField(exist = false)
    private DakaContentInfo dakaContentInfo;


    public void check() {
        Preconditions.checkNullArgument(dakaScoreId,"打卡分数");
        Preconditions.checkNullArgument(dakaContentId,"打卡");
    }
}
